package com.sskj.b70.p.fragment;

import com.lzy.okgo.model.Response;
import com.sskj.b70.m.bean.HaiPageBean;
import com.sskj.b70.m.bean.HttpData;
import com.sskj.b70.m.bean.NoticeList;
import com.sskj.b70.m.http.JsonCallBack;
import com.sskj.b70.p.base.BasePresenter;
import com.sskj.b70.v.activity.InforMationActivity;

/**
 * Created by Administrator on 2018/4/16.
 */

public class NoticePresenter extends BasePresenter<InforMationActivity> {

    public void getData(int pageNum) {
        httpService.getGGList(pageNum)
                .execute(new JsonCallBack<HttpData<HaiPageBean<NoticeList>>>(this) {
                    @Override
                    public void _onSuccess(Response<HttpData<HaiPageBean<NoticeList>>> response) {
                        mView.setData(response.body().getData().getRes());
                    }
                });
    }
}
